﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data.SqlClient;
using jiaju.Models;
using jiaju.Models.DBModel;
using jiaju.Models.DAL;

namespace jiaju.Controllers
{
    public class PartialViewController : Controller
    {
        // GET: PartialView 轮播图
        public ActionResult Banner()
        {
            List<Banner> bannerList = BannerService.getBannerList();
            ViewBag.A = bannerList;
            return PartialView();
        }
        //页脚
        public ActionResult Footer()
        {
            HomeInfo home = HomeInfoService.getHomeInfo();
            ViewBag.A = home;
            return PartialView();
        }
    }
}